{if isset($user)}

<p>Welcome {$user->nameFirst}</p>

<h3>Articles</h3>
{foreach from=$articles item=a}
	{if $a.Approved == "Y" || $a.Approved == "A"}
	<p>
	<a href="v.php?a={$a.FileID}">{$a.Title}</a><br/>
	{substr(strip_tags($a.Articledata), 0, 60)}...
	<span style="color:red">[</span> Approved - <a href="saa.php?fileid={$a.FileID}">Edit</a> - <a href="ada.php?num={$a.FileID}">Del</a><span style="color:red">]</span></p>
	{else}
	<p>
	<a href="saa.php?fileid={$a.FileID}">{$a.Title}</a><br/>
	{substr(strip_tags($a.Articledata), 0, 60)}...
	<span style="color:red">[</span> Pending - <a href="saa.php?fileid={$a.FileID}">Edit</a> - <a href="ada.php?num={$a.FileID}">Del</a><span style="color:red">]</span></p>
	{/if}
{foreachelse}
	<div align="center"><br /><br />You have no articles yet, you can <a href="saa.php">create</a> an article.<br /></div>
{/foreach}

{else}
<p>Welcome Guest</p>
<p>Feel free to create a guest <a href="./saa.php">article</a>, or <a href="login.php">Login<a/>.</p>
{/if}